<?php
namespace Foxframe;
require_once 'library/phpmailer/class.phpmailer.php';

class Mail extends \PHPMailer
{

	public function __construct()
	{
		$this->IsSMTP(); // telling the class to use SMTP
// 		$this->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
		                                           // 1 = errors and messages
		                                           // 2 = messages only
		$this->SMTPAuth		= true;                  // enable SMTP authentication
		$this->SMTPSecure	= "tls";                 // sets the prefix to the server
		$this->Host			= "smtp.gmail.com";      // sets GMAIL as the SMTP server
		$this->Port			= 587;                   // set the SMTP port for the GMAIL server
		$this->Username		= "testefoxsis@gmail.com";  // GMAIL username
		$this->Password		= "o1Mai@))*";            // GMAIL password
		$this->IsHTML(true);
		$this->From			= 'contato@foxsis.com';
		$this->FromName		= \Foxframe\Uri::getInstance()->get('application');
	}

}